package cn.hd.commonService.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author hd
 * @since 2022-10-07
 */
@Getter
@Setter
@TableName("table_generate")
@ApiModel(value = "TableGenerate对象", description = "")
public class TableGenerate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String recordId;

    @ApiModelProperty("输出目录")
    private String outputDir;

    @ApiModelProperty("包名")
    private String packageName;

    @ApiModelProperty("所属的功能")
    private String functionName;

    @ApiModelProperty("mapper所属的目录")
    private String mapperPath;

    @ApiModelProperty("要生成的表名")
    private String tableName;

    @ApiModelProperty("创建者")
    private String createUser;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("删除标记")
    @TableLogic
    private Integer deleted;
    @TableField(exist=false)
    private String createTimeDesc;

    public TableGenerate() {
    }

    public TableGenerate(String functionName, String tableName) {
        this.functionName = functionName;
        this.tableName = tableName;
    }
}
